package cn.elead.chaos.core.map;

import java.util.Map;

/**
 * 
 * @Auth 赵光
 * @Describle 等价于Map<String, Object>, 功能增强
 */
public class ObjectMap extends DefaultMap<Object> {

	private static final long serialVersionUID = 1L;

	public ObjectMap() {

	}

	public ObjectMap(String key, Object value) {
		put(key, value);
	}

	public ObjectMap(Map<String, Object> map) {
		putAll(map);
	}

	@Override
	public ObjectMap addValue(String key, Object value) {
		put(key, value);
		return this;
	}

	public static ObjectMap newMap() {
		return new ObjectMap();
	}

	public static ObjectMap newMap(String key, Object value) {
		return new ObjectMap(key, value);
	}

	public static ObjectMap newMap(Map<String, Object> map) {
		return new ObjectMap(map);
	}
}
